package com.LachesismStorm.lachesism.member.util;

import com.LachesismStorm.lachesism.core.util.LachesismTools;
import com.LachesismStorm.lachesism.member.vo.MessageVO;
import com.google.gson.Gson;

/**
 * @Author: lachesism
 * @Date: 2023/04/09/12:37
 * @Description:
 */
public class AesTool {
    private static String key = "LachesismStorm24";


    public static String encryptEntity(MessageVO messageVO) throws Exception {
        Gson gson = new Gson();
        String encrypt = LachesismTools.encrypt(gson.toJson(messageVO));
        return encrypt;
    }
}
